package edu.sctu.zhangwang.month201506.day20150627;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by Administrator on 2015/6/27.
 */
public class Json_Main {
    public static void main(String[] args) {


        String str = "{\"response\":{\"json_data\":[{\"address\":\"南京市游乐园\",\"province\":\"江苏\",\"district\":" +
                "\"玄武区\",\"city\":\"南京\"}]},\"status\":\"ok\"}";
        JsonApp jsonApp = JSONObject.parseObject(str,JsonApp.class);
        System.out.print(jsonApp.response.data.get(0).province+"\t");
        System.out.print(jsonApp.response.data.get(0).city+"\t");
        System.out.print(jsonApp.response.data.get(0).district+"\t");
        System.out.print(jsonApp.response.data.get(0).address);
    }
}
